package com.example.team.service.Imp;

import com.example.team.dao.IPresenceinformationDao;
import com.example.team.entity.Presenceinformation;
import com.example.team.service.IPresenceinformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者:王轩
 * date: 2023/10/31
 **/
@Service
public class IPresenceinformationServiveImpl implements IPresenceinformationService {
    @Autowired
    private IPresenceinformationDao presenceinformationDao;
    @Override
    public int insertPresenceinformation(Presenceinformation presenceinformation) {
        return  presenceinformationDao.insertPresenceinformation(presenceinformation);
    }

    @Override
    public int deletePresenceinformation(Presenceinformation presenceinformation) {
        return presenceinformationDao.deletePresenceinformation(presenceinformation);
    }

    @Override
    public int updatePresenceinformation(Presenceinformation presenceinformation) {
        return presenceinformationDao.updatePresenceinformation(presenceinformation);
    }

    @Override
    public List<Presenceinformation> getAllPresenceinformation(Presenceinformation presenceinformation) {
        return presenceinformationDao.getAllPresenceinformation(presenceinformation);
    }

    @Override
    public Presenceinformation getPresenceinformation(Presenceinformation presenceinformation) {
        return  presenceinformationDao.getPresenceinformation(presenceinformation);
    }
}
